package com.github.user.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 *用户地址DTO
 */
@Data
@ToString
public class UserAddrDTO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "地址ID")
    private Long addrId;

    @Schema(description = "手机")
    private String mobile;

    @Schema(description = "是否默认地址  1是")
    private Integer isDefault;

    @Schema(description = "收货人")
    @Length(min = 2,max=20,message = "收货人姓名需要在2-20位之间")
    private String consignee;

    @Schema(description = "省份ID")
    private Long provinceId;

    @Schema(description = "省份")
    private String province;

    @Schema(description = "城市ID")
    private Long cityId;

    @Schema(description = "城市")
    private String city;

    @Schema(description = "地区ID")
    private Long areaId;

    @Schema(description = "地区")
    private String area;

    @Schema(description = "邮编")
    private String postCode;

    @Schema(description = "详细地址")
    private String addr;

    @Schema(description = "经度")
    private Double lng;

    @Schema(description = "纬度")
    private Double lat;





















}
